import 'package:json_annotation/json_annotation.dart';

part 'store_table.g.dart';

@JsonSerializable(explicitToJson: true)
class StoreTable {
  StoreTable();

  int tableId;
  int storeId;
  String storeName;
  String tableName;
  String qrcode;
  String miniQrcode;
  String wxparamQrcode;
  String h5Qrcode;
  int maxPerson;
  String ctime;
  String utime;
  int isLock;
  int areaId;
  String areaName;
  int waiterId;
  String waiterName;
  String waiterHeadImage;
  String waiterTime;
  int tableStatus;
  int actualPerson;
  String openTime;
  String waiterOpenid;
  int addTableId;
  int addTableNum;
  @JsonKey(defaultValue: 0)
  int totalFee;
  @JsonKey(defaultValue: 0)
  int unionTableId;

  @JsonKey(defaultValue: [])
  factory StoreTable.fromJson(Map<String, dynamic> json) => _$StoreTableFromJson(json);

  Map<String, dynamic> toJson() => _$StoreTableToJson(this);
}
